// 在 Page({}) 结构中添加代码
const app = getApp();
Page({
  data: {
    title:'综合排行榜',
    StatusBar: app.globalData.StatusBar, // 从 app.js 获取状态栏高度
    additionalOffset: 8, //设定一个额外的偏移量，用于垂直居中调整
    userList:[
            {
              id: 1,
              avatar: 'cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/energyPage/avatar1.png',
              nickname: '用户1',
              energy: 86
            },
            {
              id: 2,
              avatar: 'cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/energyPage/avatar2.png',
              nickname: '用户2',
              energy: 98
            },
            {
              id: 3,
              avatar: 'cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/energyPage/avatar3.png',
              nickname: '用户3',
              energy: 120
            },
            {
              id: 4,
              avatar: 'cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/energyPage/avatar4.png',
              nickname: '用户4',
              energy: 361
            },
            {
              id: 5,
              avatar: 'cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/energyPage/avatar5.png',
              nickname: '用户5',
              energy: 66
            },
            {
              id: 6,
              avatar: 'cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/energyPage/avatar6.png',
              nickname: '用户6',
              energy: 10
            },
            {
              id: 7,
              avatar: 'cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/energyPage/avatar7.png',
              nickname: '用户7',
              energy: 40
            },
            {
              id: 8,
              avatar: 'cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/energyPage/avatar8.png',
              nickname: '用户8',
              energy: 78
            },
            {
              id: 9,
              avatar: 'cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/energyPage/avatar9.png',
              nickname: '用户9',
              energy: 20
            },
            {
              id: 10,
              avatar: 'cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/energyPage/avatar10.png',
              nickname: '用户10',
              energy: 10
            }
          ]
  }
});
